
  <div class='row'>
    <div class='span12'>
      <div class='panel'>
        <h2><?php echo ucwords(lang('the_rules'));?></h2>
      </div>
    </div>
  </div>
  <div class='row'>
    <div class='span6'>      
      <div class='panel'>
        <h2><?php echo lang('day_results');?>:</h2>
        <ul>
         <li><?php echo sprintf(lang('points_stage_rule'), count($config['points_stage']));?> 
          <ol>
          <?php foreach ($config['points_stage'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>
       <ul>
         <li><?php echo sprintf(lang('points_yellow_rule'), count($config['points_stage_yellow']));?>
          <ol>
          <?php foreach ($config['points_stage_yellow'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>
       <ul>
         <li><?php echo sprintf(lang('points_green_rule'), count($config['points_stage_green']));?>
          <ol>
          <?php foreach ($config['points_stage_green'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>
       <ul>
         <li><?php echo sprintf(lang('points_mountain_rule'), count($config['points_stage_mountain']));?>
          <ol>
          <?php foreach ($config['points_stage_mountain'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
        </ul>         
      </div>
    </div>
    <div class='span6'>
      <div class='panel'>
        <h2><?php echo lang('end_results');?>:</h2>
       <ul>
         <li><?php echo sprintf(lang('points_end_yellow_rule'), count($config['points_end_yellow']));?>
          <ol>
          <?php foreach ($config['points_end_yellow'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>
       <ul>
         <li><?php echo sprintf(lang('points_end_green_rule'), count($config['points_end_green']));?>
          <ol>
          <?php foreach ($config['points_end_green'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>
       <ul>
         <li><?php echo sprintf(lang('points_end_mountain_rule'), count($config['points_end_mountain']));?>
          <ol>
          <?php foreach ($config['points_end_mountain'] as $key=>$value)
          {
            echo "<li>".$value." ".lang('points')."</li>";
          }
          ?>
          </ol>
         </li>
       </ul>                      
      </div>
    </div>
  </div>
